<?php

mysql_connect("localhost","localhost","hostlocal");
mysql_select_db("vircast");
$q=mysql_query("SELECT * FROM user_message");
while($e=mysql_fetch_assoc($q)){
	$output[]=$e;
//	echo "1. $e<br>";
}
//echo "out: $output<br>";
print(json_encode($output));
mysql_close();
?>

